package com.dingyx.ps.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("分页信息")
public class PageEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "每页多少条", required = true)
    public long pageSize = 10;
    @ApiModelProperty(value = "页码", required = true)
    public long pageNum = 1;
    @ApiModelProperty("排序列")
    public String sortColumn = "create_time";
    @ApiModelProperty("排序规则 asc 和desc")
    public String sortRule = "desc";

    public PageEntity() {
    }
}

